<!DOCTYPE html>
<html lang="en">
<head>
    <title>处方列表</title>
    <titleType style="display: none;">yjjList</titleType>
    <%- include('../../_global/baseLibsJKDA') %>
    <script src="/static/lib/forweb.js"></script>
    <script src="/static/js/aboutPay.js"></script>
    <script src="/quickJs/scripts/swiper/3.4.2/js/swiper.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/payment.css">
    <link rel="stylesheet" type="text/css" href="/static/css/page.css">
    <link rel="stylesheet" type="text/css" href="/static/css/public.css">
    <script src="/quickJs/scripts/common/md5.js"></script>
    <script src="/static/js/gzd/pageUrl.js"></script>
    <script src="/static/js/gzd/jkda.js"></script>


</head>
<style>
    .hospital-detail .hospital-jj-box .text-box span.yellow {
        margin-left: 0.5rem !important;
    }
</style>

<body>

<header class="header-box fixed grey">
    <div class="header-content">
        <div class="left-tool">
            <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
        </div>
        <div class="title">处方列表</div>
    </div>
</header>
<section class="page-wrap hospital-detail" style="width: 100%;position: absolute;">
    <div id="ListTabBox">
        <div class="tab active" id="allBill" index="0">


        </div>
    </div>
</section>




</body>

</html>
<script>






    var page_dzcfList = (function($, page_dzcfList) {

        /**加载数据*/
        function initAllData() {

            var prescription = StoreCache.getCache("mzInfo");
            prescription = {
                "zxwyh" : prescription.pid,
                "medicalOrgId" : prescription.hosCode,
                "serialNum" : prescription.serialNum,
                "currentPage":"",
                "pageSize":""
            };
            $.QuickRemote.AjaxJson($.getMyorderUrl.getpageUrl("getPrescriptionRecord"), prescriptionList,prescription);
            function prescriptionList(data) {
                // var obj = {
                //     data : data
                // }
                $('#allBill').append(template("dscfList", {data:data}));

                // if(data.length>0){
                //     var str="";
                //     for(var i=0,per;per=data[i++];){
                //         str+='<div class="presList">'+
                //                 '<ul class="bilsContent" onclick="redirect()">'
                //                     +'<li><span class="grayFont">开方时间 :</span>'+ per.preDate+'</li>'
                //                     +'<li><span class="grayFont">开方医生姓名 :</span>'+per.docName+'</li>'
                //                     +'<li class="payInfo"><div><span class="grayFont">开方科室名称:</span>'
                //                     +per.prescribeDept+'</div>'
                //                     +'</li>'
                //                     +'<li><span class="grayFont">处方号码 :</span>'+per.prescriptionId+'</li>'
                //                     +'<li><span class="grayFont">处方金额 :</span>'+per.prescriptionAmount+'</li>'
                //                 +'</ul>'
                //             +'<div>'

                //     }
                // $('#allBill').append(str);

                //     }

            }


        }

        function  redirect() {
            // $.QuickUrlUtils.redirectJSBridge({url:"/html/jkda/jkda/dzcf/dzcfDetail.ejs"});
            $.pageSwitch.goToUrl("jkda", "dzcfDetail");
        }

        var cfg_def = {
            initAllData: initAllData,
            redirect: redirect,
        }

        page_dzcfList.init = function(cfg){
            $.extend(page_dzcfList, cfg_def, cfg);
            page_dzcfList.initAllData();
            $(".bilsContent").on("click", page_dzcfList.redirect);
        }

        return page_dzcfList;
    })(jQuery, {});
    

</script>
<script type="text/html" id="dscfList">
    {{each data}}
    <div class="presList">
        <ul class="bilsContent" >
            <li>
                <span class="grayFont">开方时间:</span>{{$value.preDate}}
            </li>
            <li>
                <span class="grayFont">开方医生姓名:</span>{{$value.docName}}
            </li>
            <li>
                <div>
                    <span class="grayFont">开方科室名称:</span>{{$value.prescribeDept}}
                </div>
            </li>
            <li>
                <span class="grayFont">处方号码:</span>{{$value.prescriptionId}}
            </li>
            <li>
                <span class="grayFont">处方金额:</span>{{$value.prescriptionAmount}}
            </li>
        </ul>
        <div>
            {{/each}}
</script>



